from selenium.webdriver.common.by import By

from base.base_page import BasePage


class OrderPage(BasePage):

    #第一个商品
    first_good=(By.CSS_SELECTOR,'a[href="#/app/home/productDetail/3"]>a>img')
    #加入购物车
    add_cart=(By.XPATH,'//a[contains(text(),"加入购物车")]')
    #去结算
    go_to_order=(By.XPATH,'//*[@id="cart_show"]/div[2]/a[2]')
    #收货地址
    order_address=(By.XPATH,'//p[contains(text(),"配送地址")]/following-sibling::ul/li[2]')
    #支付方式
    pay=(By.XPATH,'//p[contains(text(),"选择支付方式")]/following-sibling::p/img')
    #留言
    message=(By.XPATH,'//*[@id="cart-box"]/div[3]/textarea')
    #去结算支付
    submit_btn=(By.XPATH,'//*[@id="cart-box"]/div[3]/p/a')
    #商品订单
    order_good=(By.XPATH,'//*[@id="cart-box"]/div[2]/ul')

